[whatwg] lede element

2007-10-01 Thread Devi Web Development
This is just an idea for what I consider to be a solidly semantic element.
It isn't necessary nor does it add any new functionality. However, it
removes one more need for additional span elements.

The lede element is an inline element useful for signifying the lede in a
document. It is commonly used term in journalism for the opening sentence or
two which introduces the article.
More detailed description can be found at
http://en.wikipedia.org/wiki/News_style#Terms_and_structure


Usage Case:

h1Burmese monks 'to be sent away'/h1
pledeThousands of monks detained in Burma's main city of Rangoon will be
sent to prisons in the far north of the country, sources have told the
BBC./lede About 4,000 monks have been rounded up in the past week as the
military government has tried to stamp out pro-democracy protests. They are
being held at a disused race course and a technical college. Sources from a
government-sponsored militia said they would soon be moved away from
Rangoon...

A common styling (in CSS) would be
lede{font-weight:bold}
however, I would not imagine that to be default


---
Daniel Brumbaugh Keeney
Devi Web Development
[EMAIL PROTECTED]
---


Re: [whatwg] Color attributes

2007-10-01 Thread Simon Pieters
On Fri, 24 Aug 2007 19:05:06 +0200, Simon Pieters [EMAIL PROTECTED]  
wrote:



[...]


http://simon.html5.org/test/html/parsing/color-attributes/the-algorithm/


Do we want to do this for quirks mode only? IE7 does it for standards  
mode as well, but Opera, Firefox and Safari have different (stricter)  
processing rules for standards mode.


I'd suggest that we do the same thing for both quirks mode and standards  
mode.


It seems IE also supports CSS2 System Colors.

The algorithm (once again; hopefully this time it'll stick):

   1. If the string is the empty string, act as if the attribute was
  absent and abort these steps.
   2. If the string ASCII-case-insensitively matches a css3-color keyword
  or one of the CSS2 System Colors, or is transparent
  (ASCII-case-insensitively), use that and abort these steps.
   3. Trim all but the first 128 chars from the string.
   4. If it exists, strip the first leading #.
   5. Replace non-valid-hex chars with 0s.
   6. ASCII-lower-case the string.
   7. Make string length a multiple of 3 and a minimum of 3 by appending
  0s.
   8. Split the string into 3 equal segments.
   9. Trim all but the right-most 8 chars from each segment.
  10. If segment length is 1, left-pad each segment with a 0, else:
  11. While segment length is greater than 2 and the first char of each
  segment is equal to 0, trim the left-most char from each segment,
  then:
  12. Trim all but the first 2 chars from each segment.
  13. Join the segments and append them to a # char to create the final
  string.

--
Simon Pieters


Re: [whatwg] WF 2.0 -- HTMLTextAreaElement [ type ] attribute

2007-10-01 Thread Křištof Želechovski
Of the MIME type text/plain, text is the type and plain is the subtype.  In
my opinion, the type property should not vary in order to remain consistent
with its behavior in other controls; you can suggest a subtype property if
you find it useful.

Cheers
Chris

-Original Message-
From: Benjamin Hawkes-Lewis [mailto:[EMAIL PROTECTED] 
Sent: Saturday, September 15, 2007 4:08 PM
To: Kristof Zelechovski
Cc: 'Garrett Smith'; [EMAIL PROTECTED]
Subject: Re: [whatwg] WF 2.0 -- HTMLTextAreaElement [ type ] attribute

Presumably return a MIME type e.g. text/plain, text/html. IIRC this idea 
was never fully thought out. Many textareas accepting HTML actually want 
a fragment and often only a subset of markup. It would be handy to have 
some way of specifying such profiles for clientside authoring tools to use.

--
Benjamin Hawkes-Lewis

Kristof Zelechovski wrote:
 If I were one, I would return text, just like it does in an input
control
 does.
 
 Cheers
 Chris
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Garrett Smith
 Sent: Friday, September 14, 2007 2:53 AM
 To: [EMAIL PROTECTED]
 Subject: [whatwg] WF 2.0 -- HTMLTextAreaElement [ type ] attribute
 
 Regarding the [type] attribute:
 
 interface HTMLTextAreaElement : HTMLElement {
attribute DOMString   defaultValue;
   readonly attribute HTMLFormElement form;
attribute DOMString   accessKey;
attribute longcols;
attribute boolean disabled;
attribute DOMString   name;
attribute boolean readOnly;
attribute longrows;
attribute longtabIndex;
   readonly attribute DOMString   type;
 
 
 What does the |type| attribute do?