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

Fixes bug in formatting element adoption agency algorithm #36

Merged
merged 2 commits into from
Jul 8, 2013

Conversation

subbuss
Copy link
Contributor

@subbuss subbuss commented Jul 5, 2013

  • As per the whatwg specs [1], further processing of formatting
    elements has to stop if no "furthest block" is found on top of
    the formatting elements.

  • This fixes bug in parsing the following snippet:
    "foobarbaz" which would get parsed as:
    "foobarbaz"

    Reported as a bug in Parsoid [2]

  • All existing tests pass -- new tests required.

[1] http://www.whatwg.org/specs/web-apps/current-work/multipage/tree-construction.html#adoption-agency-algorithm
[2] https://bugzilla.wikimedia.org/show_bug.cgi?id=50604

* As per the whatwg specs [1], further processing of formatting
  elements has to stop if no "furthest block" is found on top of
  the formatting elements.

* This fixes bug in parsing the following snippet:
  "<em>foo<em>bar</em>baz</em>" which would get parsed as:
  "<em>foo<em>bar</em></em>baz"

  Reported as a bug in Parsoid [2]

* All existing tests pass -- new tests required.

[1] http://www.whatwg.org/specs/web-apps/current-work/multipage/tree-construction.html#adoption-agency-algorithm
[2] https://bugzilla.wikimedia.org/show_bug.cgi?id=50604
@cscott
Copy link
Collaborator

cscott commented Jul 8, 2013

It would be good to add the new test case cited in the commit message. I'll try to do that today, then merge.

@subbuss
Copy link
Contributor Author

subbuss commented Jul 8, 2013

Added a new test. Not sure if the pull request will include that or not. If not, I can issue a new pull request.

cscott added a commit that referenced this pull request Jul 8, 2013
Fixes bug in formatting element adoption agency algorithm
@cscott cscott merged commit 5d7a906 into fgnass:master Jul 8, 2013
cscott added a commit that referenced this pull request Jul 8, 2013
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 this pull request may close these issues.

None yet

2 participants