Download it now!
Bug 88906 - HTML export: mixup of <span lang="..."> and <a> elements
Summary: HTML export: mixup of <span lang="..."> and <a> elements
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) Master
Hardware: All All
: medium normal
Assignee: Stephan Bergmann
Whiteboard: target:4.5.0
Depends on:
Reported: 2015-01-29 15:53 UTC by Stephan Bergmann
Modified: 2015-02-02 09:16 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Bergmann 2015-01-29 15:53:04 UTC
Found while looking at bug 76291:  In an en-US (or presumably any non-CTL) locale LO Writer:

* "Insert - Hyperlink - Internet - Hyperlink Type - Target:" enter "粵語mv&amp;sm=12" then "Close"

* save as "HTML (Writer)"

The resulting HTML document's body is broken (note the mismatched closing and re-opening of the <a> tag; whitespace added for clarity):

>  <p style="margin-bottom: 0in; line-height: 100%">
>   <a href="粵語mv&amp;sm=12">
>    <font face="Source Han Sans CN Normal">
>     <font size="2" style="font-size: 10pt">
>      <span lang="zh-CN">
>       粵語
> </a>
>      </span>
>     </font>
>    </font>
> <a href="粵語mv&amp;sm=12">
>    mv&amp;sm=12
>   </a>
>  </p>
Comment 1 V Stuart Foote 2015-01-29 16:24:20 UTC
Yup... there is an unneeded </a> placed before the close of </span>
Comment 3 Stephan Bergmann 2015-02-02 09:16:35 UTC
(the fix has no impact on bug 76021)