[Bug 21781] New: Say that resolving of relative longdesc URLs is affected by <base> (and @xml:base)

https://www.w3.org/Bugs/Public/show_bug.cgi?id=21781

            Bug ID: 21781
           Summary: Say that resolving of relative longdesc URLs is
                    affected by <base> (and @xml:base)
    Classification: Unclassified
           Product: HTML WG
           Version: unspecified
          Hardware: PC
               URL: https://dvcs.w3.org/hg/html-proposals/raw-file/720b89a
                    ac76f/longdesc1/longdesc.html
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML Image Description Extension
          Assignee: chaals@yandex-team.ru
          Reporter: xn--mlform-iua@xn--mlform-iua.no
        QA Contact: public-html-bugzilla@w3.org
                CC: public-html-admin@w3.org

The base element affects how URLs are opened.

http://www.w3.org/html/wg/drafts/html/master/infrastructure.html#urls
http://www.w3.org/html/wg/drafts/html/master/document-metadata.html#the-base-element

    Citing the latter reference:

]] The base element allows authors to specify the document base URL for the
purposes of resolving relative URLs, and the name of the default browsing
context for the purposes of following hyperlinks. [[

PROPOSAL: Please point out that the opening of longdesc URLs *is* affected by
the presence of a base element and (for XML documents) by the xml:base
attribute
(http://www.w3.org/html/wg/drafts/html/master/dom.html#the-xml:base-attribute-%28xml-only%29).
May be this does not need to be specified in much detail. *May be* it is enough
to point to HTML5. But please mention it. Why? Well, currently neither iCab or
Opera seems to take <base> into account. And i should be clarified how it
works.

For instance, in this document, the relative longdesc URL should open relative
to the page referenced in the base href attribute:

<!DOCTYPE html>
<title>Base element with href attribute.</title>
<base href="http://www.example.com/news/index.html"/>
<img src=img alt=alt longdesc="#description1" />

And in this page, the relative longdesc would display a fragment of the current
page in the nested iframe element:

<!DOCTYPE html>
<title>Base element with target attribute.</title>
<base target="theIframe"/>
<img src=img alt=alt longdesc="#decription1" />
<iframe name="theIframe" id="theIframe" ></iframe>

And in this case, the fragment would be taken from the page at
differentpage.html

<!DOCTYPE html>
<title>Base element with target attribute.</title>
<base href="differentpage.html" target="theIframe"/>
<img src=img alt=alt longdesc="#decription1" />
<iframe name="theIframe" id="theIframe" ></iframe>

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Tuesday, 23 April 2013 05:59:20 UTC