 Chromium Code Reviews
 Chromium Code Reviews Issue 384413003:
  Document.title getter should return text of title element and setter should stop when head el…  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/blink.git@master
    
  
    Issue 384413003:
  Document.title getter should return text of title element and setter should stop when head el…  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/blink.git@master| OLD | NEW | 
|---|---|
| 1 <?xml version="1.0" standalone="no"?> | 1 <?xml version="1.0" standalone="no"?> | 
| 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" | 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" | 
| 3 "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> | 3 "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> | 
| 4 <svg width="400" height="300" viewBox="0 0 600 500" | 4 <svg width="400" height="300" viewBox="0 0 600 500" | 
| 5 xmlns="http://www.w3.org/2000/svg" version="1.1" onload="test()"> | 5 xmlns="http://www.w3.org/2000/svg" version="1.1" onload="test()"> | 
| 6 <script> | 6 <script> | 
| 7 | 7 | 
| 8 var logOffset = 40; | 8 var logOffset = 40; | 
| 9 var logOffsetIncrement = 40 | 9 var logOffsetIncrement = 40 | 
| 10 function log(message) | 10 function log(message) | 
| (...skipping 22 matching lines...) Expand all Loading... | |
| 33 return t; | 33 return t; | 
| 34 } | 34 } | 
| 35 | 35 | 
| 36 function test() | 36 function test() | 
| 37 { | 37 { | 
| 38 if (window.testRunner) | 38 if (window.testRunner) | 
| 39 testRunner.dumpAsText(); | 39 testRunner.dumpAsText(); | 
| 40 | 40 | 
| 41 expect('', document.title); | 41 expect('', document.title); | 
| 42 document.documentElement.appendChild(createTitleElement('First title')); | 42 document.documentElement.appendChild(createTitleElement('First title')); | 
| 43 expect('First title', document.title); | 43 expect('', document.title); | 
| 
Inactive
2014/07/16 14:42:05
Why this behavior change for SVG?
 
kangil_
2014/07/18 06:55:58
Done.
 | |
| 44 document.documentElement.appendChild(createTitleElement('Second title')); | 44 document.documentElement.appendChild(createTitleElement('Second title')); | 
| 45 expect('First title', document.title); | 45 expect('', document.title); | 
| 46 } | 46 } | 
| 47 </script> | 47 </script> | 
| 48 <g id="console"> | 48 <g id="console"> | 
| 49 </g> | 49 </g> | 
| 50 </svg> | 50 </svg> | 
| OLD | NEW |