You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attributes have a name and a value. Attribute names must consist of one or more characters other than controls, U+0020 SPACE, U+0022 ("), U+0027 ('), U+003E (>), U+002F (/), U+003D (=), and noncharacters. In the HTML syntax, attribute names, even those for foreign elements, may be written with any mix of ASCII lower and ASCII upper alphas.
A non-breakable space between attributes results in incorrect parsing:
current ast:
expected ast:
View AST online:
https://astexplorer.net/#/gist/d13142c629efe70f7b96ca3ff980890e/18c8e5c240f93bf3a45d0685bf399f398bfdfd33
non breakable space: https://en.wikipedia.org/wiki/Non-breaking_space
mac: alt + shift + space
Link to online AST with htmlparser2:
https://astexplorer.net/#/gist/d13142c629efe70f7b96ca3ff980890e/cf631a5987db518147e5d31687499701060db8d0
This issue is also present in the
posthtml-parser
, which useshtmlparser2
:posthtml/posthtml-parser#40
The text was updated successfully, but these errors were encountered: