Skip to content

Commit

Permalink
Fixed ug with <menuitem> (spec is broken here). Version updated
Browse files Browse the repository at this point in the history
  • Loading branch information
inikulin committed Oct 17, 2013
1 parent 87a41da commit 6289e22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lib/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -1796,6 +1796,10 @@ function rpStartTagInBody(p, token) {
p._insertElement(token, NS.HTML);
}

function menuitemStartTagInBody(p, token) {
p._appendElement(token, NS.HTML);
}

function mathStartTagInBody(p, token) {
p._reconstructActiveFormattingElements();
adjustTokenMathMLAttrs(token);
Expand Down Expand Up @@ -2020,7 +2024,7 @@ function startTagInBody(p, token) {

case 8:
if (tn === $.BASEFONT || tn === $.MENUITEM)
startTagInHead(p, token);
menuitemStartTagInBody(p, token);

else if (tn === $.FRAMESET)
framesetStartTagInBody(p, token);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "parse5",
"description": "Fast full-featured HTML parser for Node. Based on WHATWG HTML5 specification.",
"version": "0.6.0",
"version": "0.6.1",
"author": "Ivan Nikulin (ifaaan@gmail.com, https://github.com/inikulin)",
"keywords": [
"html",
Expand Down

0 comments on commit 6289e22

Please sign in to comment.