On Wed, Mar 23, 2011 at 2:18 PM, Philippe Beaudoin <
[email protected]> wrote:

> Nice. And will you have the shorter:
>  <progress value="250" max="1000" />
> For permutations that are guaranteed to support it?
>
Eventually... maybe.  When we drop support for older versions of webkit and
FF, we could switch those to lose the fallback.  However, if the fallback is
minimal, it might be better to just include it.  For example, the string
"25%" is pretty simple and only takes a couple lines of code, so we might
just leave it in there.
<progress value="250" max="1000" />25%</progress>

>
> On Wed, Mar 23, 2011 at 11:11 AM, John LaBanca <[email protected]>
> wrote:
> > @dflorey -
> > We do plan to include some HTML5 widgets using the Appearance pattern.
> >  HTML5 widgets follow a cool pattern where you can inline the fallback
> into
> > the HTML5 element.  Browsers that do not support the HTML5 element
> naturally
> > show the fallback, while browsers that do support the HTML5 widgets hide
> the
> > fallback.
> > Example:
> > <progress value="250" max="1000">
> >   <span id="downloadProgress">25</span>% <!-- Only visible if progress
> not
> > supported. -->
> > </progress>
> > Source: http://www.quackit.com/html_5/tags/html_progress_tag.cfm
> > For performance, we will use deferred bindings if we know that the
> element
> > is or is not supported.  However, its ambiguous for some user agents.
>  For
> > example, older versions of webkit do not support progress, but newer
> > versions do.
> > In IE6, IE8 (will never support HTML5 elements):
> > <span id="downloadProgress">25</span>% <!-- Only visible if progress not
> > supported. -->
> > In all other browsers (might support the element now or in the future):
> > <progress value="250" max="1000">
> >   <span id="downloadProgress">25</span>% <!-- Only visible if progress
> not
> > supported. -->
> > </progress>
> > Thanks,
> > John LaBanca
> > [email protected]
> >
> >
> > On Wed, Mar 23, 2011 at 10:06 AM, dflorey <[email protected]>
> wrote:
> >>
> >> I am wondering if you are considering to use html5 widgets if available
> >> and provide a fallback gwt implementation for browsers that do not (yet)
> >> support widgets like
> >> http://slides.html5rocks.com/#semantic-tags-2
> >>
> >> I think in general GWT has the right tools for using native browser
> stuff
> >> whenever available and providing some js-pendants if they are not
> supported.
> >
> > --
> > http://groups.google.com/group/Google-Web-Toolkit-Contributors
>
> --
> http://groups.google.com/group/Google-Web-Toolkit-Contributors
>

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to