critical: BlueGriffon 3.0.1 adds duplicate XHTML xmlns attributes
See original GitHub issueI have a typical XHTML5 file that starts like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
If I go into Source mode and do some cutting and pasting (e.g. cutting a <li>
and moving it around in a list), BlueGriffon will duplicate the xmlns="http://www.w3.org/1999/xhtml"
, resulting in this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml"
lang="en-US">
(The extra line is because of #7 , which hasn’t been fixed in almost two years, and on which I’ve put a USD$200 bounty that no one has taken advantage of.)
The extra xmlns
attribute makes this a corrupted and non-well-formed XML file.
But it gets worse: now that BlueGriffon is in this mode of adding the extra xmlns
attribute, it forces it to be added whatever I do. Even if I go to the Source tab and remove it, BlueGriffon will still save the duplicate attribute, writing a corrupted file that I cannot even load back into BlueGriffon.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top GitHub Comments
It’s great that you fixed this so quickly. Thank you!
But do you intend to provide binary builds of the 3.1 release? I’ve been checking your web site frequently so I could get a fix for this problem, but I only see 3.0.1 available.
Yes it is quite a huuuge problem 😃 I would love to see the installer getting updated with r3.1 too