Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Wikitech

Re: JS2 design (was Re: Working towards branchingMediaWiki 1.16)

 

 

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded


jared.williams1 at ntlworld

Sep 24, 2009, 9:31 AM

Post #1 of 2 (198 views)
Permalink
Re: JS2 design (was Re: Working towards branchingMediaWiki 1.16)

> -----Original Message-----
> From: wikitech-l-bounces[at]lists.wikimedia.org
> [mailto:wikitech-l-bounces[at]lists.wikimedia.org] On Behalf Of
> Aryeh Gregor
> Sent: 24 September 2009 15:48
> To: Wikimedia developers
> Subject: Re: [Wikitech-l] JS2 design (was Re: Working towards
> branchingMediaWiki 1.16)
>
> On Thu, Sep 24, 2009 at 4:41 AM, Tim Starling
> <tstarling[at]wikimedia.org> wrote:
> >      * Removes a few RTTs for non-pipelining clients
>
> Do you mean to imply that there's such a thing as a
> pipelining client on the real web? (Okay, okay, Opera.)
> This concern seems like it outweighs all the others put
> together pretty handily -- especially for script files that
> aren't at the end, which block page loading.
>
> > * Automatically create CSS sprites?
>
> That would be neat, but perhaps a bit tricky.

Just trying to think how it'd work.

Given a CSS selector, and an image, should be able to construct a
stylesheet which sets the background property of the css rules and an
single image.

(#toolbar-copy, toolbar-copy.png)
(#toolbar-copy:hover, toolbar-copy-hover.png)

And the generated stylesheet would get concatenated with other
stylesheets.

Jared


_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


jared.williams1 at ntlworld

Sep 25, 2009, 4:17 PM

Post #2 of 2 (166 views)
Permalink
Re: JS2 design (was Re: Working towards branchingMediaWiki 1.16) [In reply to]

> -----Original Message-----
> From: wikitech-l-bounces[at]lists.wikimedia.org
> [mailto:wikitech-l-bounces[at]lists.wikimedia.org] On Behalf Of
> Aryeh Gregor
> Sent: 25 September 2009 23:01
> To: Wikimedia developers
> Subject: Re: [Wikitech-l] JS2 design (was Re: Working towards
> branchingMediaWiki 1.16)
>
> On Fri, Sep 25, 2009 at 3:46 PM, Steve Sanbeg <ssanbeg[at]ask.com>
wrote:
> > I'm not sure that's entirely accurate.  XSLT works on DOM trees,
so
> > malformed XML shouldn't really apply.  Of course, the
> standard command
> > line processors create this tree with a standard parser, usually
an
> > XML parser.  But in PHP, creating the DOM with a parser and
> > transforming it with XSLT are handled separately.
>
> Interesting. In that case, theoretically, you could use an
> HTML5 parser, which is guaranteed to *always* produce a DOM
> even on random garbage input (much like wikitext!). Now,
> who's up for writing an
> HTML5 parser in PHP whose performance is acceptable? I thought not.
> :P

libxml2, and therefore PHP has a tag soup HTML 4 parser.

DOMDocument::loadHTML()

http://xmlsoft.org/html/libxml-HTMLparser.html

Jared


_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.