On Sun, 2020-08-30 at 14:01 +0200, Jos van den Oever wrote: > Hi all, > > When loading a document with html:parse(), an extra attribute is > added to > every <a/> element. > > <a href="abc"></a> becomes <a shape="rect" href="abc"></a>
This usually comes from the HTML 4 or XHTML 1.x DTDs. It is actually not incorrect behaviour, although i never liked it either. It's similar to inferring a tbody element in a table if none was supplied. Liam -- Liam Quin, https://www.delightfulcomputing.com/ Available for XML/Document/Information Architecture/XSLT/ XSL/XQuery/Web/Text Processing/A11Y training, work & consulting. Barefoot Web-slave, antique illustrations: http://www.fromoldbooks.org