From 05182f341bab0913172d345d98a88077bce46064 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Mon, 10 Dec 2012 11:03:39 -0800 Subject: [PATCH] Add a test for braces in HTML attribute values, remove data-parsoid attributes * Disabled the test for the PHP parser as that entity-endocodes the opening brace for some reason. * Removed all data-parsoid attributes, as we are mainly interested in the serialization / escaping of new HTML content in the parsoid-specific tests. Round-tripping with data-parsoid is already tested in regular wt2wt modes. Change-Id: I6072a85b4dc03965a32ccf8ce03c6ddb8f4dc49c --- tests/parser/parserTests.txt | 36 ++++++++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 10 deletions(-) diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 652fa43e39..0b7b779537 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -5694,7 +5694,7 @@ disabled |bar |} !!result - +
foo
bar @@ -5726,14 +5726,14 @@ disabled !!result - - - - -
- - -
1. foo
bar 2. baz
+ + + + +
+ + +
1. foo
bar 2. baz
abc @@ -7505,6 +7505,10 @@ Namespaced link must have a title (bad fragment version) !!end +### +### HTML tags and HTML attributes +### + !! test div with no attributes !! input @@ -7563,6 +7567,18 @@ disabled !! end +# The PHP parser escapes the opening brace to { for some reason, so +# disabled this test for it. +!! test +div with braces in attribute value +!! options +disabled +!! input +
Foo
+!! result +
Foo
+!! end + # This it very inconsistent in the PHP parser: it returns # class="class" if there is a space between the name and the equal sign (see # 'div with empty attribute value, space before equals'), but strips the @@ -12956,7 +12972,7 @@ disabled !! input [[Foo|Foo''boo'']] !! result -Foo''boo'' +Foo''boo'' !! end !! test -- 2.20.1