File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -87,18 +87,18 @@ echo "Checking toggled namespace:\n";
8787var_dump ($ dom ->documentElement ->getAttribute ('xmlns:anotheron ' ));
8888
8989?> 
90- --EXPECT --
90+ --EXPECTF --
9191Invalid Character Error
9292--- Selected attribute tests (HTML) ---
9393bool(false)
9494<!DOCTYPE HTML>
9595<html id="test"></html>
9696bool(true)
9797<!DOCTYPE HTML>
98- <html id="test" selected></html>
98+ <html id="test" selected%r(="")?%r ></html>
9999bool(true)
100100<!DOCTYPE HTML>
101- <html id="test" selected></html>
101+ <html id="test" selected%r(="")?%r ></html>
102102bool(false)
103103<!DOCTYPE HTML>
104104<html id="test"></html>
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ $document->documentElement->textContent = "quote 'test'";
5555var_dump ($ document ->documentElement ->textContent );
5656var_dump ($ document ->saveHTML ());
5757?> 
58- --EXPECT --
58+ --EXPECTF --
5959-- Attribute tests --
6060string(38) "<element attribute="value"></element>
6161"
@@ -67,10 +67,10 @@ string(13) "hello & world"
6767string(50) "<element attribute="hello & world"></element>
6868"
6969string(9) "<b>hi</b>"
70- string(54 ) "<element attribute="<b>hi</b>"></element>
70+ string(%d ) "<element attribute=%r( "<b>hi<\ /b>"|"<b>hi<\/b>")%r ></element>
7171"
7272string(12) "quote "test""
73- string(45 ) "<element attribute='quote "test"'></element>
73+ string(%d ) "<element attribute=%r( 'quote "test"'|"quote "test"")%r ></element>
7474"
7575string(12) "quote 'test'"
7676string(45) "<element attribute="quote 'test'"></element>
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments