[VarDumper] Minor tweaks to html/css dumps
This commit is contained in:
parent
3d9ad54015
commit
3b83fe115b
@ -64,6 +64,7 @@ a.doc:hover {
|
|||||||
|
|
||||||
.anchor {
|
.anchor {
|
||||||
position: relative;
|
position: relative;
|
||||||
top: -7em;
|
padding-top: 7em;
|
||||||
|
margin-top: -7em;
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
|
@ -496,7 +496,7 @@ EOHTML
|
|||||||
$attr['href'] = $href;
|
$attr['href'] = $href;
|
||||||
}
|
}
|
||||||
if (isset($attr['href'])) {
|
if (isset($attr['href'])) {
|
||||||
$v = sprintf('<a href="%s">%s</a>', esc($this->utf8Encode($attr['href'])), $v);
|
$v = sprintf('<a href="%s" target="_blank" rel="noopener noreferrer">%s</a>', esc($this->utf8Encode($attr['href'])), $v);
|
||||||
}
|
}
|
||||||
if (isset($attr['lang'])) {
|
if (isset($attr['lang'])) {
|
||||||
$v = sprintf('<code class="%s">%s</code>', esc($attr['lang']), $v);
|
$v = sprintf('<code class="%s">%s</code>', esc($attr['lang']), $v);
|
||||||
|
@ -100,7 +100,7 @@ EODUMP;
|
|||||||
|
|
||||||
$expectedDump = <<<'EODUMP'
|
$expectedDump = <<<'EODUMP'
|
||||||
<foo></foo><bar><span class=sf-dump-note>array:1</span> [<samp>
|
<foo></foo><bar><span class=sf-dump-note>array:1</span> [<samp>
|
||||||
<span class=sf-dump-index>0</span> => "<a href="%sStubCasterTest.php:0"><span class=sf-dump-str title="55 characters">Symfony\Component\VarDumper\Tests\Caster\StubCasterTest</span></a>"
|
<span class=sf-dump-index>0</span> => "<a href="%sStubCasterTest.php:0" target="_blank" rel="noopener noreferrer"><span class=sf-dump-str title="55 characters">Symfony\Component\VarDumper\Tests\Caster\StubCasterTest</span></a>"
|
||||||
</samp>]
|
</samp>]
|
||||||
</bar>
|
</bar>
|
||||||
EODUMP;
|
EODUMP;
|
||||||
@ -120,7 +120,7 @@ EODUMP;
|
|||||||
|
|
||||||
$expectedDump = <<<'EODUMP'
|
$expectedDump = <<<'EODUMP'
|
||||||
<foo></foo><bar><span class=sf-dump-note>array:1</span> [<samp>
|
<foo></foo><bar><span class=sf-dump-note>array:1</span> [<samp>
|
||||||
<span class=sf-dump-index>0</span> => "<a href="%sFooInterface.php:10"><span class=sf-dump-str title="5 characters">hello</span></a>"
|
<span class=sf-dump-index>0</span> => "<a href="%sFooInterface.php:10" target="_blank" rel="noopener noreferrer"><span class=sf-dump-str title="5 characters">hello</span></a>"
|
||||||
</samp>]
|
</samp>]
|
||||||
</bar>
|
</bar>
|
||||||
EODUMP;
|
EODUMP;
|
||||||
@ -161,7 +161,7 @@ EODUMP;
|
|||||||
|
|
||||||
$expectedDump = <<<'EODUMP'
|
$expectedDump = <<<'EODUMP'
|
||||||
<foo></foo><bar><span class=sf-dump-note>array:1</span> [<samp>
|
<foo></foo><bar><span class=sf-dump-note>array:1</span> [<samp>
|
||||||
<span class=sf-dump-index>0</span> => "<a href="%sFooInterface.php:5"><span class=sf-dump-str title="5 characters">hello</span></a>"
|
<span class=sf-dump-index>0</span> => "<a href="%sFooInterface.php:5" target="_blank" rel="noopener noreferrer"><span class=sf-dump-str title="5 characters">hello</span></a>"
|
||||||
</samp>]
|
</samp>]
|
||||||
</bar>
|
</bar>
|
||||||
EODUMP;
|
EODUMP;
|
||||||
|
Reference in New Issue
Block a user