Menu

#16 Apparent URLs in HTML PRE elements are checked

v1.0 (example)
closed-fixed
EJP
None
5
2021-07-14
2004-11-10
Phil Shaw
No

Documents where example markup is given in PRE
elements are treated as real links. I don't know how the
following will turn out, I'll follow-up with a file if it's a real
mess.

<pre>
&lt;link
rel="stylesheet"
type="text/css"
href="/styles/Example.css"
title="Example" /&gt;
</pre>

In this case the apparent URL /styles/Example.css is
treated as if it is a relative link from the current
document. I suggest markup in pre elements should not
be processed.

Discussion

  • Phil Shaw

    Phil Shaw - 2004-11-10

    Logged In: YES
    user_id=1022070

    A further example is where image references are given in PRE
    elements:

    <pre>
    ...
    menutxt += '&lt;img src=&quot;image.gif&quot; alt=&quot;...
    &quot; /&gt;';
    ...
    </pre>

    In this case, the apparent URL &quot;image.gif&quot; is
    treated as if it is a relative link from the current document.
    That is, it is resolved to literally:

    http://www.example.com/directory/&quot;image.gif&quot;

    Again, this type of reference should not be checked.

     
  • EJP

    EJP - 2021-07-03

    I'm planning a new release of JSpider in which this issue and the entire issue of HTML parsing is addressed. Please stay tuned.

     
  • EJP

    EJP - 2021-07-14
    • status: open --> closed-fixed
    • assigned_to: EJP
    • Group: --> v1.0 (example)
     

Log in to post a comment.

MongoDB Logo MongoDB