Download it now!
Bug 88906 - HTML export: mixup of <span lang="..."> and <a> elements
Summary: HTML export: mixup of <span lang="..."> and <a> elements
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.5.0.0.alpha0+ Master
Hardware: All All
: medium normal
Assignee: Stephan Bergmann
URL:
Whiteboard: target:4.5.0
Keywords:
Depends on:
Blocks:
 
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:


Attachments

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 "http://www.youtube.com/results?search_query=粵語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="http://www.youtube.com/results?search_query=粵語mv&amp;sm=12">
>    http://www.youtube.com/results?search_query=
>    <font face="Source Han Sans CN Normal">
>     <font size="2" style="font-size: 10pt">
>      <span lang="zh-CN">
>       粵語
> </a>
>      </span>
>     </font>
>    </font>
> <a href="http://www.youtube.com/results?search_query=粵語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)