Skip to content

Commit

Permalink
Update HtmlDocument.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanMagnan committed Oct 3, 2023
1 parent 7c35d8f commit f745398
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/HtmlAgilityPack.Shared/HtmlDocument.cs
Expand Up @@ -1497,6 +1497,16 @@ private void Parse()

_currentattribute._isFromParse = true;


// Add !,?,% and other special?
// or a isLetter with a "or" number check
if (_c == '/')
{
PushAttributeNameEnd(_index - 1);
_state = ParseState.AttributeBeforeEquals;
continue;
}

if (IsWhiteSpace(_c))
{
PushAttributeNameEnd(_index - 1);
Expand Down

0 comments on commit f745398

Please sign in to comment.