Menu

#626 xml:lang="*" becomes lang="*" (w/MIME application/xhtml+xml)

0.8b3
open
nobody
6
2010-04-24
2010-04-24
No

* Visit a XHTML served as 'application/xhtml+xml' http://intertwingly.net/blog/2010/04/22/Restoring-floatflt-sty
* open it in Kompozer, from the server
* save it as to the disk

Discussion

  • Leif Halvard Silli

    • priority: 5 --> 6
    • summary: xml:lang="" becomes lang="" (w/MIME application/xhtml+xml( --> xml:lang="" becomes lang="" (w/MIME application/xhtml+xml)
     
  • Leif Halvard Silli

    (Sorrry, hit "Submit" too early.)

    Point is: When a page is served as 'text/html', then Kompozer respects the 'prefix:' in the xml:lang="*" attribute. But whenever a page is served with the correct MIME type - application/xhtml+xml, then KompoZer "normalizes" xml:lang="*" into lang="*".

    As a result, one will often get two lang="*" attributes in the same file (since e.g. XHTML1 files typically will have both attributes.)

    Please make it so that KompoZer doesn't touch the prefix of the xml:lang attribute.

     
  • Leif Halvard Silli

    Additionally, after KompoZer has "normalized" xml:lang="*" to lang="*", the page is no longer well-formed, and thus Kompozer will refuse to open it again ...

     

Log in to post a comment.