- From: Laura Holmes <holmes@google.com>
- Date: Tue, 7 Aug 2007 11:07:56 -0400
- To: public-mobileok-checker <public-mobileok-checker@w3.org>
- Message-ID: <135a9f560708070807q7fea3626vbe8cf203050cf81a@mail.gmail.com>
> > - Structure of moki > > We are not sure how is the final moki structure in this way. Can you > include a sketch of stylesheets information moki? > We would want to include error snippets and location in the final results. Using regular expressions, I can get the location and a snippet. We can come up with a list of errors for each stylesheet or inline element through Java processing and then record that list in the moki. Here's my idea of what the stylesheets would look like in moki after processing with regular expressions: <stylesheets> <stylesheet type=external> <URI> <CSSValidity valid=false> <error /> all the error info currently recorded in the moki </CSSValidity> <MeasuresErrors> <error line=14> font-size: 12pt </error> <error line=32> text of another erroneous snippet </error> </MeasuresErrors> <SupportErrors> <error line=3> float: right </error> </SupportErrors> </stylesheet> <stylesheet type=inline> <CSSValidity valid=true/> <MeasureErrors> (we can easily provide the column number of the last character of this snippet within the context of the style string - would we want to do that?) <error line=15> height: 15px </error> <error line=15> another error </error> </MeasureErrors> <SupportErrors/> </stylesheet> (Another question: Would we want to include all inline styles into the moki, or only ones where there's an error?) <stylesheet type=inline> <CSSValidity valid=true/> <MeasureErrors/> <SupportErrors/> <stylesheet> <stylesheets> > - Structure of Tests > > Currently we have two CSS tests (Measures and StyleSheetSupport) running > made in a pure XSLT way based on CSS serialization > > How would be a skeleton of any of CSS test with Regular Expressions? > Given the above representation, we would then test for the presence of specific elements in the moki. To perform the measures test, we would just see if there were any stylesheets with errors listed under the <MeasuresErrors> tag. Then we would place the info about snippets and line number into the results document. > - Line number > > How is reported the line number with this approach? > Line number from inline elements is easy, as we already have a method for identifying the line numbers of the primary document. As for the embedded and external style sheets, we can just read them in as a file, like Sean suggested. Hope this helps to clarify things. Cheers, Laura
Received on Tuesday, 7 August 2007 15:08:21 UTC