Include Pattern Feedback
Feedback about include-pattern.
Objects and Browser Behavior
Over at Yahoo! Local, we were using the object include pattern for all our hReviews on business detail pages and review listings. That is, until we realized that Safari and Internet Explorer both try to embed the entire page with every OBJECT call. (Firefox correctly recognizes that it's a local object and doesn't reload anything.)
On a page with 20+ reviews, this means a substantial increase in load time and memory consumption. As a result of this (bad) browser behavior, we removed the objects entirely.
Any suggestions for workarounds or modifications to the pattern?
-- AndyBaio 29 Jun 2006
Can you use the hyperlink option with DHMTL/Ajax (see Simon Willion's
getElementBySelector()) to perform replacements in advanced browsers?
<a href="#id" class="include" title=""></a>
--RichHall 00:51, 23 Oct 2006 (PDT)
Some concerns have been raised over the implications using empty hyperlinks may have on assistive devices such as screen readers. One concern is that an empty link may be read out, partially read out or result in some other confusing scenario for the user.
In response, a test page consisting of a number of empty hyperlinks in the style suggested by the pattern has been created. A 'good' result is that none of the links be read out.
Test Results: JAWS 7.0 with Firefox 1.5/Win
Tested by Frances Berriman 2006-07-21.
- 31 dash include dash Mozilla Firefox
- Page has no links
- 31 dash include
Conclusion: the hyperlink include pattern presented no usability issues for this screen reader.
HTML tidy on the test page gives:
- Warning: <a> proprietary attribute "data"
AndyMabbett 14:22, 22 Oct 2006 (PDT)
To clarify, links on the test page should be changed to use the
href attribute as described at include-pattern (without
href attributes, the elements probably won't register as hyperlinks, but anchors). Set
title="" to fix empty link behavior for many assistive devices. --RichHall 23:31, 22 Oct 2006 (PDT)
- include-pattern is not its own proposal, draft, or spec. It is a design pattern, as listed on the wiki home page that is included in other proposals, drafts. and specs. Recommend for adding to the include-pattern-faq.