W3C home > Mailing lists > Public > public-bpwg@w3.org > May 2008

PAGE_SIZE_LIMIT [was mobileOK Basic 1zl - proposed LC-4 draft]

From: Miguel Garcia <miguel.garcia@fundacionctic.org>
Date: Wed, 7 May 2008 17:40:18 +0200
Message-ID: <09700B613C4DD84FA9F2FEA52188281903715499@ayalga.fundacionctic.org>
To: "Jo Rabin" <jrabin@mtld.mobi>, <public-bpwg@w3.org>

Hi,

As agreeded by the group PAGE_SIZE_LIMIT test should take into account
object tasting request to the total size. To achieve this we should
process from top objects element until we reach a supported object
(image/jpeg or image/gif). So the initial input will be all top-level
objects (objects that has no object element ancestor) and recursively
apply a processing object rule until reached a supported object or the
last nested object.

--- begin ---
For each included NON-object 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 each object element that has no object element ancestor
	Apply Processing Object Rule
--- end ---

(I've splitted the loop in two (object and non-object) for clarity
sake.)


--- begin ---
Processing Object Rule
	If no type attribute is set retrieve the resource:
		Add the size of the response
		If the resource retrieved is nor "image/jpeg" neither
"image/gif" apply this rule to its object children
	
	If type attribute is either "image/jpeg" or "image/gif" retrieve
it and add the size of the response
	
	If type attribute is nor "image/jpeg" neither "image/gif" apply
this rule to its object children
--- end ---

Miguel
Received on Wednesday, 7 May 2008 15:41:13 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:42:58 UTC