nodom icon indicating copy to clipboard operation
nodom copied to clipboard

Better dom-alikeness?

Open ixti opened this issue 7 years ago • 3 comments

I understand that nodom is sort of internal utility belt for re:dom, but I would like to use it for my testing purposes (where I can't use neither phantomjs, nor jsdom). So far all works great and as expected for me except that it has some issues:

  • tagName is lower-cased while according to specs it should be either as is (XML) or upcased (HTML)
  • missing nodeName
  • document does not have childNodes getter.

I'm fine to work on PR, but would like to know if changes like the above are ever have chances to be merged in.

ixti avatar Dec 11 '17 03:12 ixti

Hi!

Go for it, we’re missing contributions! I don’t think there’s a reason for any of those. I will most definitely merge.

pakastin avatar Dec 11 '17 05:12 pakastin

Awesome! Thanks!

ixti avatar Dec 11 '17 12:12 ixti

@ixti Have you seen Raynos/min-document or fgnass/domino? At first glance it seems like the former might work for you, but if not, the latter is more spec-complete.

michaelrhodes avatar Apr 06 '18 00:04 michaelrhodes