ISSUE-251: Differences between the algorithms in OBJECTS_OR_SCRIPT and PAGE_SIZE_LIMIT

mobileOK Algorithms

Differences between the algorithms in OBJECTS_OR_SCRIPT and PAGE_SIZE_LIMIT

State:
CLOSED
Product:
mobileOK Basic tests
Raised by:
Jo Rabin
Opened on:
2008-05-22
Description:
This in response to my ACTION-758 Raise an Issue on the differences between the algorithms in OBJECTS_OR_SCRIPT and PAGE_SIZE_LIMIT

Please see also the excellent post by Francois [1] whi9ch relates to this:
[1] http://lists.w3.org/Archives/Public/public-bpwg/2008May/0018.html

The issue is this - in OBJECTS_OR_SCRIPT we say that the checker should check every object, irrespective of whether the Object element has a type attribute. This is because some browsers ignore the type attribute.

On the other hand, in PAGE_SIZE_LIMIT, we say that if the type attribute is specified and the content is irrelevant then, because some browsers take account of the type attribute, it's not fair to count that resource.

The logic is to be both safe and generous. I think, modulo FD's comments, that the logic is OK, but a little bit more word-smithing may be needed to make the document completely consistent.

Additionally, the latest OBJECTS_OR_SCRIPT algorithm needs careful checking, it's not the one we agreed as the new one, as that was broken, as was the one we originally published. This is obviously something that is hard to get right, and ideally we need a resolution that the new one is correct.

OBJECTS_OR_SCRIPT

3.15.1 Object Element Processing Rule

For each object element that has no object element ancestor in this context (excepting the context node itself):

Retrieve the object (ignoring the type attribute)

If the content type of the retrieved object is not "image/jpeg" or "image/gif"

If the object element is empty, warn

If the content of the object element consists only of white space, FAIL

For each img element that has no object element ancestor in this context:

If the content type of the img element is not "image/jpeg" or "image/gif", FAIL

Reapply this rule using the current object element as the context


PAGE_SIZE_LIMIT

For each included resource, as defined in 2.4.6 Included Resources:

Request the referenced resource

Add the size of the response body to the running total (for object elements count the size of objects retrieved under the "Object Element Processing Rule" whose type attribute is not specified, and those whose content type is either "image/jpeg" or "image/gif" irrespective of whether the type attribute is specified)

If the total exceeds 20 kilobytes, FAIL
Related Actions Items:
No related actions
Related emails:
  1. Re: ISSUE-251 (mobileOK Algorithms): Differences between the algorithms in OBJECTS_OR_SCRIPT and PAGE_SIZE_LIMIT [mobileOK Basic tests] (from fd@w3.org on 2008-05-27)
  2. Re: ISSUE-251 (mobileOK Algorithms): Differences between the algorithms in OBJECTS_OR_SCRIPT and PAGE_SIZE_LIMIT [mobileOK Basic tests] (from jrabin@mtld.mobi on 2008-05-22)
  3. ISSUE-251 (mobileOK Algorithms): Differences between the algorithms in OBJECTS_OR_SCRIPT and PAGE_SIZE_LIMIT [mobileOK Basic tests] (from sysbot+tracker@w3.org on 2008-05-22)

Related notes:

This was resolved with the latest mobileOK draft
http://www.w3.org/TR/2008/WD-mobileOK-basic10-tests-20080610/

Dominique Hazaël-Massieux, 11 Jun 2008, 19:37:21

Display change log ATOM feed


Jo Rabin <jo@linguafranca.org>, Daniel Appelquist <daniel.appelquist@vodafone.com>, Chairs, Dominique Hazaël-Massieux <dom@w3.org>, François Daoust <fd@w3.org>, Staff Contacts
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <w3t-sys@w3.org>.
$Id: 251.html,v 1.1 2011/01/10 15:19:46 dom Exp $