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

Fix broken inline CSS #606

Merged
merged 3 commits into from Jul 19, 2013
Merged

Fix broken inline CSS #606

merged 3 commits into from Jul 19, 2013

Conversation

@metajack
Copy link
Contributor

metajack commented Jul 19, 2013

This add a new children iterator to abstract node and fixes a bug where inline stylesheets got parsed piecewise due to \r style line endings.

metajack added 2 commits Jul 19, 2013
If '\r' appears in an inline <style> element, libhubbub splits the text nodes
there, creating multiple text children. The inline style logic assumed that
each <style> element had only one child.

The logic was moved to trigger when the style element is finished parsing
completely (including the children), and then the children are concatenated
before sending it to the parser.
@jdm

This comment has been minimized.

This whitespace can go.

This comment has been minimized.

Copy link
Owner Author

metajack replied Jul 19, 2013

Whoops!

@jdm

This comment has been minimized.

Copy link

jdm commented on 2b44efb Jul 19, 2013

r+

@bors-servo

This comment has been minimized.

Copy link
Contributor

bors-servo commented on 2b44efb Jul 19, 2013

saw approval from jdm
at metajack@2b44efb

This comment has been minimized.

Copy link
Contributor

bors-servo replied Jul 19, 2013

merging metajack/servo/broken-inline-css = 2b44efb into auto

This comment has been minimized.

Copy link
Contributor

bors-servo replied Jul 19, 2013

metajack/servo/broken-inline-css = 2b44efb merged ok, testing candidate = cca33c2

This comment has been minimized.

Copy link
Contributor

bors-servo replied Jul 19, 2013

fast-forwarding master to auto = cca33c2

bors-servo pushed a commit that referenced this pull request Jul 19, 2013
This add a new children iterator to abstract node and fixes a bug where inline stylesheets got parsed piecewise due to \r style line endings.
@bors-servo bors-servo merged commit 2b44efb into servo:master Jul 19, 2013
1 check passed
1 check passed
default all tests passed
@metajack metajack mentioned this pull request Jul 20, 2013
bors-servo pushed a commit that referenced this pull request Jul 20, 2013
The fix for #606 broke all inline CSS, and this fixes it correctly.
ChrisParis pushed a commit to ChrisParis/servo that referenced this pull request Sep 7, 2014
Deleted some old tests from Infraware on forms that are better handled in tests we already had from Aryeh. Kept the ones we didn't yet have corresponding tests for from Aryeh.
@jdm jdm mentioned this pull request Nov 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.