-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #166 from wjdp/hash-in-pre
Stop ignoring the content of pre / code tags
- Loading branch information
Showing
10 changed files
with
222 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<!DOCTYPE html> | ||
|
||
<pre><span id="A">1</span></pre> | ||
<a href="#A">1</a> | ||
|
||
<span id="B">2</span> | ||
<a href="#B">2</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<pre lang="html"><code><script src="https://embed.github.com/view/geojson/<username>/<repo>/<ref>/<path_to_file>"></script> | ||
<pre lang="html"><code><script src="https://embed.github.invalid/view/geojson/<username>/<repo>/<ref>/<path_to_file>"></script> | ||
</code></pre> | ||
|
||
<pre><script></script></pre> | ||
|
||
<code><script src="https://embed.github.com/view/geojson/<username>/<repo>/<ref>/<path_to_file>"></script> | ||
<code><script src="https://embed.github.invalid/view/geojson/<username>/<repo>/<ref>/<path_to_file>"></script> | ||
</code> | ||
|
||
<code><script></script></code> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
{ | ||
"Name": "anchors_in_pre.html", | ||
"Path": "fixtures/vcr/links", | ||
"Tracks": [ | ||
{ | ||
"Request": { | ||
"Method": "GET", | ||
"URL": { | ||
"Scheme": "http", | ||
"Opaque": "", | ||
"User": null, | ||
"Host": "www.asdo3IRJ395295jsingrkrg4.com", | ||
"Path": "", | ||
"RawPath": "", | ||
"ForceQuery": false, | ||
"RawQuery": "", | ||
"Fragment": "", | ||
"RawFragment": "" | ||
}, | ||
"Header": { | ||
"Accept": [ | ||
"*/*" | ||
], | ||
"Range": [ | ||
"bytes=0-0" | ||
], | ||
"User-Agent": [ | ||
"htmltest/dev" | ||
] | ||
}, | ||
"Body": "" | ||
}, | ||
"Response": { | ||
"Status": "", | ||
"StatusCode": 0, | ||
"Proto": "", | ||
"ProtoMajor": 0, | ||
"ProtoMinor": 0, | ||
"Header": null, | ||
"Body": null, | ||
"ContentLength": 0, | ||
"TransferEncoding": null, | ||
"Trailer": null, | ||
"TLS": null | ||
}, | ||
"ErrType": "*net.OpError", | ||
"ErrMsg": "dial tcp: lookup www.asdo3IRJ395295jsingrkrg4.com: no such host" | ||
}, | ||
{ | ||
"Request": { | ||
"Method": "GET", | ||
"URL": { | ||
"Scheme": "http", | ||
"Opaque": "", | ||
"User": null, | ||
"Host": "www.asdo3IRJ395295jsingrkrg4.com", | ||
"Path": "", | ||
"RawPath": "", | ||
"ForceQuery": false, | ||
"RawQuery": "", | ||
"Fragment": "", | ||
"RawFragment": "" | ||
}, | ||
"Header": { | ||
"Accept": [ | ||
"*/*" | ||
], | ||
"Range": [ | ||
"bytes=0-0" | ||
], | ||
"User-Agent": [ | ||
"htmltest/dev" | ||
] | ||
}, | ||
"Body": "" | ||
}, | ||
"Response": { | ||
"Status": "", | ||
"StatusCode": 0, | ||
"Proto": "", | ||
"ProtoMajor": 0, | ||
"ProtoMinor": 0, | ||
"Header": null, | ||
"Body": null, | ||
"ContentLength": 0, | ||
"TransferEncoding": null, | ||
"Trailer": null, | ||
"TLS": null | ||
}, | ||
"ErrType": "*net.OpError", | ||
"ErrMsg": "dial tcp: lookup www.asdo3IRJ395295jsingrkrg4.com: no such host" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
{ | ||
"Name": "script_in_pre.html", | ||
"Path": "fixtures/vcr/scripts", | ||
"Tracks": [ | ||
{ | ||
"Request": { | ||
"Method": "GET", | ||
"URL": { | ||
"Scheme": "https", | ||
"Opaque": "", | ||
"User": null, | ||
"Host": "embed.github.invalid", | ||
"Path": "/view/geojson/\u003cusername\u003e/\u003crepo\u003e/\u003cref\u003e/\u003cpath_to_file\u003e", | ||
"RawPath": "", | ||
"ForceQuery": false, | ||
"RawQuery": "", | ||
"Fragment": "", | ||
"RawFragment": "" | ||
}, | ||
"Header": { | ||
"Accept": [ | ||
"*/*" | ||
], | ||
"Range": [ | ||
"bytes=0-0" | ||
], | ||
"User-Agent": [ | ||
"htmltest/dev" | ||
] | ||
}, | ||
"Body": "" | ||
}, | ||
"Response": { | ||
"Status": "", | ||
"StatusCode": 0, | ||
"Proto": "", | ||
"ProtoMajor": 0, | ||
"ProtoMinor": 0, | ||
"Header": null, | ||
"Body": null, | ||
"ContentLength": 0, | ||
"TransferEncoding": null, | ||
"Trailer": null, | ||
"TLS": null | ||
}, | ||
"ErrType": "*net.OpError", | ||
"ErrMsg": "dial tcp: lookup embed.github.invalid: no such host" | ||
}, | ||
{ | ||
"Request": { | ||
"Method": "GET", | ||
"URL": { | ||
"Scheme": "https", | ||
"Opaque": "", | ||
"User": null, | ||
"Host": "embed.github.invalid", | ||
"Path": "/view/geojson/\u003cusername\u003e/\u003crepo\u003e/\u003cref\u003e/\u003cpath_to_file\u003e", | ||
"RawPath": "", | ||
"ForceQuery": false, | ||
"RawQuery": "", | ||
"Fragment": "", | ||
"RawFragment": "" | ||
}, | ||
"Header": { | ||
"Accept": [ | ||
"*/*" | ||
], | ||
"Range": [ | ||
"bytes=0-0" | ||
], | ||
"User-Agent": [ | ||
"htmltest/dev" | ||
] | ||
}, | ||
"Body": "" | ||
}, | ||
"Response": { | ||
"Status": "", | ||
"StatusCode": 0, | ||
"Proto": "", | ||
"ProtoMajor": 0, | ||
"ProtoMinor": 0, | ||
"Header": null, | ||
"Body": null, | ||
"ContentLength": 0, | ||
"TransferEncoding": null, | ||
"Trailer": null, | ||
"TLS": null | ||
}, | ||
"ErrType": "*net.OpError", | ||
"ErrMsg": "dial tcp: lookup embed.github.invalid: no such host" | ||
} | ||
] | ||
} |