RE: SVGT 1.2: SVG fragment identifiers

Hi, Maciej-

Thanks for your comment.

Maciej Stachowiak wrote:
| 
| "When a source document performs a link into an SVG document via an  
| HTML [HTML4] anchor element (i.e., <a href=...> element in HTML) or  
| an XLink specification [XLINK], then the SVG fragment identifier  
| shall specify the initial view into the SVG document, as follows:
| 
| *     If no SVG fragment identifier is provided (e.g, the specified  
| IRI did not contain a "#" character, such as MyDrawing.svg), 
| then the initial view into the SVG document shall be established 
| using the view specification attributes (i.e., viewBox, etc.) on   
| the 'svg' element.
| *    If the SVG fragment identifier addresses any element , such as  
| MyDrawing.svg#rectId), then the document defined by the rootmost svg  
| element shall be displayed in the viewport using the view  
| specification attributes on the rootmost svg element. "
| 
| Issues:
| 
| 1) Are these points actually calling for different behavior? What is  
| the difference between "the initial view into the SVG document shall  
| be established using the view specification attributes (i.e.,  
| viewBox, etc.) on the 'svg' element" and "the document 
| defined by the  
| rootmost svg element shall be displayed in the viewport using the  
| view specification attributes on the rootmost svg element."? Those  
| sound like they would be the same initial view to me. Therefore it  
| seems like fragment identifiers that address any element have no  
| effect have no effect.

The SVG WG agrees that this behavior is not what was intended, and is
inconsistent with regards to the behavior of the fragment identifier in
HTML. This is due to an omission in SVG 1.0, and we have restored the intent
of the behavior.

The specification now indicates that when a bare name fragment identifier
indicates an existing element, that element will be centered in the
viewport. The exact wording will be available in the next public draft. If
this behavior or the specific wording does not satisfy your concern, please
respond promptly.

Thanks-
Doug, on behalf of the SVG WG

Received on Tuesday, 27 June 2006 23:00:57 UTC