Commit 6c195c5e authored by Andrea Iacovitti's avatar Andrea Iacovitti

Return resolved url for frame src.

parent 9c49a28a
......@@ -231,7 +231,8 @@ void HTMLFrameElement::setScrolling( const DOMString &value )
DOMString HTMLFrameElement::src() const
{
if(!impl) return DOMString();
return ((ElementImpl *)impl)->getAttribute(ATTR_SRC);
const QString s = ((ElementImpl *)impl)->getAttribute(ATTR_SRC).string().trimmed();
return !s.isNull() ? impl->document()->completeURL(s) : DOMString();
}
void HTMLFrameElement::setSrc( const DOMString &value )
......
......@@ -1551,7 +1551,7 @@ const KJS::HTMLElement::BoundPropInfo KJS::HTMLElement::bpTable[] = {
{ID_FRAME, FrameName, T_String, ATTR_NAME},
{ID_FRAME, FrameNoResize, T_Bool, ATTR_NORESIZE},
{ID_FRAME, FrameScrolling, T_String, ATTR_SCROLLING},
{ID_FRAME, FrameSrc, T_String, ATTR_SRC}, //### not URL?
{ID_FRAME, FrameSrc, T_URL, ATTR_SRC},
{ID_FRAME, FrameLocation, BoundPropType(T_String | T_ReadOnly), ATTR_SRC},
{ID_IFRAME, IFrameFrameBorder, T_String, ATTR_FRAMEBORDER},
{ID_IFRAME, IFrameLongDesc, T_String, ATTR_LONGDESC},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment