-
Notifications
You must be signed in to change notification settings - Fork 266
Open
Description
Pug doesnt handle tags with hyphen in it.
For instance, this page is AMP and has tags such as amp-img, amp-analytics in it.
$ curl https://www.newyorker.com/news/current/mark-zuckerberg-announces-facebooks-pivot-to-privacy/amp | grep amp-img
# shows resultsHowever pup doesnt recognize them
$ curl https://www.newyorker.com/news/current/mark-zuckerberg-announces-facebooks-pivot-to-privacy/amp | pup 'amp-img'
# NothingHere's a simpler test case -
$ echo "<html><h1>foo</h1><foo-bar>hi there</foo-bar></html>" | pup 'body'
<body>
<h1>
foo
</h1>
<foo-bar>
hi there
</foo-bar>
</body>$ echo "<html><h1>foo</h1><foo-bar>hi there</foo-bar></html>" | pup 'foo-bar'
# nothingReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels