http://forge.typo3.org/http://forge.typo3.org/themes/typo3_forge/favicon/favicon.png?17058661692007-09-09T07:07:29ZTYPO3 ForgeTYPO3 Core - Bug #17591: <base> tag produces text selection problems in IE6http://forge.typo3.org/issues/17591?journal_id=459022007-09-09T07:07:29ZDmitry Dulepov
<ul></ul><p>Request declined because it violates HTML specification, namely part 12.4, which says:</p>
<pre>
12.4 Path information: the BASE element
<!ELEMENT BASE - O EMPTY -- document base URI -->
<!ATTLIST BASE
href %URI; #REQUIRED -- URI that acts as base URI --
>
Start tag: required, <b><u>End tag: forbidden</u></b>
</pre>
<p>Reference: <a class="external" href="http://www.w3.org/TR/html401/struct/links.html#h-12.4">http://www.w3.org/TR/html401/struct/links.html#h-12.4</a></p> TYPO3 Core - Bug #17591: <base> tag produces text selection problems in IE6http://forge.typo3.org/issues/17591?journal_id=459032007-09-09T10:14:10ZChristian Welzel
<ul></ul><p>Then Typo3 currently violates exactly this rule.<br />It generates the base tag as <base /> which means that the base tag<br />has an end tag (following xml spec<br /><a class="external" href="http://www.w3.org/TR/2006/REC-xml-20060816/#sec-starttags">http://www.w3.org/TR/2006/REC-xml-20060816/#sec-starttags</a>) although<br />the element is empty. And empty elements can be written with an <tag/><br />or <tag></tag> following above spec.</p>
<p>For strict html 4.01 compliance the base tag had to be <base href="..."><br />without any slashes.</p> TYPO3 Core - Bug #17591: <base> tag produces text selection problems in IE6http://forge.typo3.org/issues/17591?journal_id=459042007-09-09T19:11:35ZDmitry Dulepov
<ul></ul><p>Nope. Closing tag means exactly what you propose: </base>. But <base ... /> is allowed. See here: <a class="external" href="http://www.w3.org/TR/xhtml1/#C_2">http://www.w3.org/TR/xhtml1/#C_2</a></p>
<p>Do not refer to xml while working with html. This is not the same.</p> TYPO3 Core - Bug #17591: <base> tag produces text selection problems in IE6http://forge.typo3.org/issues/17591?journal_id=459052007-09-10T16:35:34ZGeorg Leitner
<ul></ul><p>See: CSS-bugs with IE 6 <a class="external" href="http://drupal.org/node/44934">http://drupal.org/node/44934</a></p>
<pre>
<base href="http://example.org/"><!--[if IE]></base><![endif]-->
</pre> TYPO3 Core - Bug #17591: <base> tag produces text selection problems in IE6http://forge.typo3.org/issues/17591?journal_id=459062008-08-18T10:24:43ZLoredana Zecal.zeca@ameos.com
<ul></ul><p>I had the same problem on IE6 with googlemaps, that couldn't be displayed anymore.<br />In fact, I had an error like that:<br />"Internet Explorer couldn't open the site<br /><a class="external" href="http://.">http://.</a>..<br />Operation aborted"</p>
<p>After some researches, I discovered this problem on googlemap forum:<br /><a class="external" href="http://groups.google.com/group/Google-Maps-API/browse_thread/thread/3b9f5d5bf103a02b/e4f2cad7b366ad78?lnk=gst&q=IE6+operation+aborted#e4f2cad7b366ad78">http://groups.google.com/group/Google-Maps-API/browse_thread/thread/3b9f5d5bf103a02b/e4f2cad7b366ad78?lnk=gst&q=IE6+operation+aborted#e4f2cad7b366ad78</a></p>
<p>It is a problem due to the tags closed uncorrectly, and more specifically the tag <base>.</p>
<p>So, I don't know if there is already a patch for this problem, but you can see here my solution:</p>
<p>1). class "tslib_pagegen.php": line 488</p>
<p>I replaced this line:<br /> $GLOBALS['TSFE']->content.='<br /><base href="'.htmlspecialchars($GLOBALS['TSFE']->baseUrl).'" />';*/</p>
<p>with this one<br /> $GLOBALS['TSFE']->content.='<br /><base href="'.htmlspecialchars($GLOBALS['TSFE']->baseUrl).'"></base>';</p>
<p>2). class "tslib_fe.php": line 1393</p>
<p>I replaced this line:<br /> $replacement = chr(10) . '<base href="' . htmlentities($base) . '" />' . chr(10);<br />with this one<br /> $replacement = chr(10) . '<base href="' . htmlentities($base) . '" ></base>' . chr(10);</p>
<p>I hope this help</p> TYPO3 Core - Bug #17591: <base> tag produces text selection problems in IE6http://forge.typo3.org/issues/17591?journal_id=459072008-08-18T11:43:30ZDmitry Dulepov
<ul></ul><p>Sorry, guys, we can't violate the spec because of a bug in the old browser.</p>
<p>Use can TS conditions to solve the problem:</p>
<p>[browser = msie][version < 7]<br />page.headerData.100 = TEXT<br />page.headerData.100 = <base href="<a class="external" href="http://example.com/&quot;&gt;&lt;/base">http://example.com/&quot;&gt;&lt;/base</a>><br />[else]<br />config.baseTag = <a class="external" href="http://example.com/">http://example.com/</a><br />[global]</p> TYPO3 Core - Bug #17591: <base> tag produces text selection problems in IE6http://forge.typo3.org/issues/17591?journal_id=3869652018-10-02T12:32:24ZBenni Mackbenni@typo3.org
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul>