Skip to content

Conversation

@alexlamsl
Copy link
Collaborator

The following have been tested on IE11 (Win7/10) and Chrome 48 (OSX):

  • <phrasing-only>a<div>b</div></phrasing-only> does not mutate unless phrasing-only === p
  • <p>a<div>b</div>c</p> transforms to <p>a</p><div>b</div>c<p></p>
  • <br>x</br> transforms to <br>x<br>

I've went through the whole list of HTML5 elements which claims to except phrasing content only, but the only one both browsers would mutate is <p>, so the first item is exhaustively tested.

The next two I've only tested some common cases but since the code only targets them specifically we can always expand on it if/when we discover more of these corner cases.

@alexlamsl alexlamsl mentioned this pull request Mar 21, 2016
alexlamsl added a commit that referenced this pull request Mar 21, 2016
phrasing content DOM mutation and other browser behaviours
@alexlamsl alexlamsl merged commit d767ac9 into kangax:gh-pages Mar 21, 2016
@alexlamsl alexlamsl deleted the phrasing-rewrite branch March 21, 2016 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant