diff options
Diffstat (limited to 'src/components/script/html/hubbub_html_parser.rs')
-rw-r--r-- | src/components/script/html/hubbub_html_parser.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/components/script/html/hubbub_html_parser.rs b/src/components/script/html/hubbub_html_parser.rs index 8bb6afd22b2..931f93c52c6 100644 --- a/src/components/script/html/hubbub_html_parser.rs +++ b/src/components/script/html/hubbub_html_parser.rs @@ -314,6 +314,13 @@ pub fn parse_html(cx: *JSContext, do node.as_mut_element |element| { for tag.attributes.iter().advance |attr| { element.attrs.push(Attr::new(attr.name.clone(), attr.value.clone())); + + if "style" == attr.name { + element.style_attribute = Some( + Stylesheet::from_attribute( + url::from_str("http://www.example.com/").unwrap(), + attr.value)); + } } } @@ -374,7 +381,6 @@ pub fn parse_html(cx: *JSContext, } } - //TODO (Issue #86): handle inline styles ('style' attr) _ => {} } |