Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<main> tag not processed #93

Open
bartb opened this issue Jan 31, 2018 · 7 comments · May be fixed by #107
Open

<main> tag not processed #93

bartb opened this issue Jan 31, 2018 · 7 comments · May be fixed by #107

Comments

@bartb
Copy link

bartb commented Jan 31, 2018

This HTML:

echo '<div>something</div>' | pup 'div'

Results in, as expected:

<div>
 something
</div>

This:

echo '<main>something</main>' | pup 'main'

Results in:

Empty

Expected:

<main>
 something
</main>
@tonowoe
Copy link

tonowoe commented Jul 22, 2018

Any workaround for this?

@tammersaleh
Copy link

I'm seeing the same thing when trying to use pup to parse a draw.io document (<mxfile><diagram>...</diagram></mxfile>).

@andremarianiello
Copy link

I'm seeing this issue as well.

@andremarianiello andremarianiello linked a pull request Feb 22, 2019 that will close this issue
@amitbha
Copy link

amitbha commented Feb 19, 2020

Same issue.
And attributes not support special characters like '-' '_'

@joereynolds
Copy link

Also getting this issue :(

@frioux
Copy link

frioux commented Jan 23, 2022

I merged the fix for this into https://github.com/frioux/pup, if anyone is interested.

@amitbha
Copy link

amitbha commented Jan 23, 2022

I switched to xidel, supporting powerful xpath for xml, xhtml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants