-
Notifications
You must be signed in to change notification settings - Fork 12
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
Incorrect <form> tag processing #26
Comments
Nice find. You are correct, the second case should be the proper result. I'll have to address that when I have some time. Just out of curiosity, what happens when you put some elements inside the form? |
I inserted input inside the form and got the result: {
"node": "Document",
"child": [
{
"node": "Element",
"tag": "html",
"child": [
{
"tag": "head"
},
{
"node": "Element",
"tag": "body",
"child": [
{
"tag": "form"
},
{
"tag": "input"
},
{
"node": "Text",
"text": "</form>"
}
]
}
]
}
]
} |
Interesting. I'll definitely have to fix that, or you can give it a go If you'd like. Thanks for spotting that. I think it may be an issue with HtmlAgilityPack. We can probably intercept it if it is form node and do some manual of our own processing. |
First of all I'll add the test for the case (today or tomorrow) :) And then I'll try to figure out what the problem. |
I send the PR for the issue. PS: Can you add |
Fix #26. Exclude 'Form' tag from ElementsFlags
I start working on tests and found some problem (or may be I misunderstanding
tag processing).My test:
Result JSON string:
Is it true that node "Text" with text "</form>" is not correct? And it should look so:
The text was updated successfully, but these errors were encountered: