#406 browsers crash when Kompozer add multiple "lang=" attributes

Mike Seiler

Kompozer can add contradictory 'lang' attributes to line 2. This causes browsers to crash. This bug shows up both in the Xp and *nix version.

An example of such a buggy line is
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" dir="ltr" lang="en-US">

In firefox, this causes an error message of
XML Parsing Error: duplicate attribute
Location: file:///C:/Documents%20and%20Settings/Mike/My%20Documents/Artisteer%20Templates/GojiPagelayout/index.xhtml
Line Number 2, Column 64:<html xmlns="http://www.w3.org/1999/xhtml" lang="en" dir="ltr" lang="en-US"><head>

Also, Windows Internet Explorer just crashes while trying to open the file.

Editing line two does not work since Kompozer recompiles the line with every save.

Editing the line with notepad to fix the bug by removing one of the 'lang' attributes allows the file to be rendered by browsers... until the next Kompozer save.

A webpage that causes this bug is attached, but I had to leave out the images to get the file to upload. You can see the complete index.xhtml page at


  • Mike Seiler
    Mike Seiler

    Kompozer generated index.xhtml page crashes browsers

  • KompoZer version 0.8b1 (20091011) | Mandriva Linux

    I created a XHTML new page, then I added a lang attribut to the <html> tag. I wasn't able to add more than one. When selecting the "lang" attribut in the dropdown list, it just allows to modify the existing attribut.

    I also opened your working XHTML page into KompoZer, and saved it. KompoZer didn't add a second "lang" attribut.

    According the opening date, it could be a bug of Nvu or kompozer 0.7.10.

    Anout IE crashes, its IE...

    • milestone: --> 0.7.10
    • priority: 5 --> 4
    • status: open --> open-works-for-me