зеркало из https://github.com/mozilla/pjs.git
<frame> now uses <base> for its src attribute
This commit is contained in:
Родитель
61573c8d6e
Коммит
0885ea6134
|
@ -1027,6 +1027,8 @@ SinkContext::AddLeaf(const nsIParserNode& aNode)
|
|||
}
|
||||
switch (nodeType) {
|
||||
case eHTMLTag_img:
|
||||
case eHTMLTag_frame:
|
||||
case eHTMLTag_input:
|
||||
mSink->AddBaseTagInfo(content);
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -613,6 +613,9 @@ void TempMakeAbsURL(nsIContent* aContent, nsString& aRelURL, nsString& aAbsURL)
|
|||
}
|
||||
|
||||
nsAutoString base;
|
||||
if (NS_CONTENT_ATTR_HAS_VALUE != aContent->GetAttribute(NS_HTML_BASE_HREF, base)) {
|
||||
base = "";
|
||||
}
|
||||
nsresult rv = NS_MakeAbsoluteURL(docURL, base, aRelURL, aAbsURL);
|
||||
NS_IF_RELEASE(docURL);
|
||||
}
|
||||
|
|
|
@ -613,6 +613,9 @@ void TempMakeAbsURL(nsIContent* aContent, nsString& aRelURL, nsString& aAbsURL)
|
|||
}
|
||||
|
||||
nsAutoString base;
|
||||
if (NS_CONTENT_ATTR_HAS_VALUE != aContent->GetAttribute(NS_HTML_BASE_HREF, base)) {
|
||||
base = "";
|
||||
}
|
||||
nsresult rv = NS_MakeAbsoluteURL(docURL, base, aRelURL, aAbsURL);
|
||||
NS_IF_RELEASE(docURL);
|
||||
}
|
||||
|
|
|
@ -1027,6 +1027,8 @@ SinkContext::AddLeaf(const nsIParserNode& aNode)
|
|||
}
|
||||
switch (nodeType) {
|
||||
case eHTMLTag_img:
|
||||
case eHTMLTag_frame:
|
||||
case eHTMLTag_input:
|
||||
mSink->AddBaseTagInfo(content);
|
||||
break;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче