View Single Post
Old 08-08-2022, 06:40 PM   #49
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,447
Karma: 6734148
Join Date: Nov 2009
Device: many
Okay I can recreate some strange behaviour:

Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
  <title></title>
</head>

<body>
  <p>*</p>

   <p> This text precedes &lt;dl&gt; this text comes after </p>

</body>
</html>
Then in PageEdit if I select the text "&lt;dl&gt;" and use the Chain Link Icon and type in as the target any external url, I end up with it split out and somehow an actual dl tag is included by the editor which hides the link text and splits the preceding paragraph.

See the image below for how things look in PageEdit's Inspector after inserting the link.

So no text is lost in this case.

Inserting a single space around the dl makes everything work:

ie.

Code:
   <p> This text precedes &lt; dl &gt; this text comes after </p>
It acts even worse when a non-existing tag name is used between the &lt; and &gt;.

For example: this leads to lost code:

Code:
  <p> This text precedes &lt;nhjdl&gt; this text comes after </p>
Attached Thumbnails
Click image for larger version

Name:	result_from_inspector.png
Views:	250
Size:	107.9 KB
ID:	195697  

Last edited by KevinH; 08-08-2022 at 07:42 PM.
KevinH is online now   Reply With Quote