Skip to content

Move inline stylesheet parsing out of HTML parser. - #1984

Merged
bors-servo merged 1 commit into
servo:masterfrom
mbrubeck:1959-parser-style
Apr 14, 2014
Merged

bors-servo merged 1 commit into
servo:masterfrom
mbrubeck:1959-parser-style

Conversation

@mbrubeck

Copy link
Copy Markdown
Contributor

This is a partial fix for #1959. This commit only addresses inline <style> elements. Next I will need to move <link rel="stylesheet"> handling into shared code, but I wanted to get some early feedback on this piece first.

Comment thread src/components/script/dom/element.rs Outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't sure if this should live in script::html::cssparse, or maybe in one of the Element/Node traits...

@jdm jdm closed this Mar 26, 2014
@jdm jdm reopened this Mar 26, 2014
@hoppipolla-critic-bot

Copy link
Copy Markdown

Critic review: https://critic.hoppipolla.co.uk/r/1102

This is an external review system which you may optionally use for the code review of your pull request.

In order to help critic track your changes, please do not make in-place history rewrites (e.g. via git rebase -i or git commit --amend) when updating this pull request.

@jdm

jdm commented Apr 5, 2014

Copy link
Copy Markdown
Member

This now requires a rebase, unfortunately.

@mbrubeck mbrubeck self-assigned this Apr 7, 2014
@mbrubeck

Copy link
Copy Markdown
Contributor Author

r? @Ms2ger

Instead, use shared code to parse stylesheet content when it is inserted,
whether during parsing or dynamically by script.

Based on work by sanools in servo#1350.
bors-servo pushed a commit that referenced this pull request Apr 14, 2014
This is a partial fix for #1959.  This commit only addresses inline `<style>` elements.  Next I will need to move `<link rel="stylesheet">` handling into shared code, but I wanted to get some early feedback on this piece first.
@bors-servo
bors-servo merged commit 8c794c6 into servo:master Apr 14, 2014
mbrubeck added a commit to mbrubeck/servo that referenced this pull request Apr 14, 2014
bors-servo pushed a commit that referenced this pull request Apr 14, 2014
@jdm jdm mentioned this pull request Sep 16, 2014
6 tasks done
@mbrubeck
mbrubeck deleted the 1959-parser-style branch May 11, 2016 03:33
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.

5 participants