[Bug 1839185] Re: element with xmlns attribute is not rendered properly

Paride Legovini 1839185 at bugs.launchpad.net
Mon Mar 21 11:30:42 UTC 2022


Jammy ships bs4 4.10.0:

 beautifulsoup4 | 4.10.0-2       | jammy  | source

so I'm marking the beautifulsoup4 devel task as Fix Released.

** Changed in: lxml
       Status: Invalid => Fix Released

** Changed in: beautifulsoup4 (Ubuntu)
       Status: Expired => Fix Released

** Project changed: lxml => lxml (Ubuntu)

** Changed in: lxml (Ubuntu)
       Status: Fix Released => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to lxml in Ubuntu.
https://bugs.launchpad.net/bugs/1839185

Title:
  element with xmlns attribute is not rendered properly

Status in beautifulsoup4 package in Ubuntu:
  Fix Released
Status in lxml package in Ubuntu:
  Invalid

Bug description:
  lxml 4.4.0 introduces an issue with the following XML:

  <?xml version="1.0" encoding="utf-8"?>
  <NAMM_PO version="2009.2" xmlns="http://namm.com/PO/2009.2">
  <Id>TEST_ID</Id>
  <NAMM_PO>

  This is the output XML:

  <?xml version="1.0" encoding="utf-8"?>
  <NAMM_PO version="2009.2" xmlns:="http://namm.com/PO/2009.2">
  <Id>TEST_ID</Id>
  <NAMM_PO/></NAMM_PO>

  Note the missing closing tag of the NAMM_PO element, the additional
  NAMM_PO element, and the addition of a colon to the xmlns attribute.

  Version info:

  Python              : sys.version_info(major=2, minor=7, micro=10, releaselevel='final', serial=0)
  lxml.etree          : (4, 4, 0, 0)
  libxml used         : (2, 9, 9)
  libxml compiled     : (2, 9, 9)
  libxslt used        : (1, 1, 33)
  libxslt compiled    : (1, 1, 33)

  To repro:

  Open and unarchive attached 'lxml_4_4_0_bug.zip'.  Create a virtual
  environment, install requirements, and run 'python repro.py' to
  produce the above output.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/beautifulsoup4/+bug/1839185/+subscriptions




More information about the foundations-bugs mailing list