Have CharacterData call children_changed on its parent when data is set.

Have CharacterData.SetData call children_changed on its parent when
data is set (if it is a Text node) so that HTMLStyleElement parents can
re-parse. Add variant ChildrenMutation::Text for it to use as the
mutation.

This fixes an issue where an empty <style> element's data is set but the
style is not updated. An HTMLStyleElement parent re-parses in its
children_changed implementation.
This commit is contained in:
Jonathan Chan 2017-06-07 10:16:05 -07:00
parent 3f2d747689
commit 4142665282
8 changed files with 24 additions and 301 deletions

View file

@ -1,71 +0,0 @@
[test_variable_legal_values.htm]
type: testharness
[percentage]
expected: FAIL
[number]
expected: FAIL
[length]
expected: FAIL
[time]
expected: FAIL
[function]
expected: FAIL
[nested_function]
expected: FAIL
[parentheses]
expected: FAIL
[braces]
expected: FAIL
[brackets]
expected: FAIL
[at_keyword_unknown]
expected: FAIL
[at_keyword_known]
expected: FAIL
[at_keyword_unknown_and_block]
expected: FAIL
[at_keyword_known_and_block]
expected: FAIL
[unbalanced_close_bracket_at_toplevel]
expected: FAIL
[unbalanced_close_paren_at_toplevel]
expected: FAIL
[unbalanced_close_bracket_in_something_balanced]
expected: FAIL
[unbalanced_close_paren_in_something_balanced]
expected: FAIL
[unbalanced_close_brace_in_something_balanced]
expected: FAIL
[CDO_at_top_level]
expected: FAIL
[CDC_at_top_level]
expected: FAIL
[semicolon_not_at_top_level_value_unused]
expected: FAIL
[CDO_not_at_top_level_value_unused]
expected: FAIL
[CDC_not_at_top_level_value_unused]
expected: FAIL