Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #15583

Re: Sum of several fields using parseInt differs from that of using a calculator

From Denis McMahon <denismfmcmahon@gmail.com>
Newsgroups comp.lang.javascript
Subject Re: Sum of several fields using parseInt differs from that of using a calculator
Date 2012-08-26 22:29 +0000
Organization A noiseless patient Spider
Message-ID <k1e807$i6p$2@dont-email.me> (permalink)
References (2 earlier) <5c08b4d4-5162-4580-9c9e-d23937e046e2@z17g2000yqk.googlegroups.com> <5039ec17$0$6192$ba4acef3@reader.news.orange.fr> <1e52efa2-bcfe-45f6-a005-608614428fbb@k3g2000yqo.googlegroups.com> <k1e26f$r6g$1@dont-email.me> <XnsA0BBEF27039BDeejj99@194.109.133.133>

Show all headers | View raw


On Sun, 26 Aug 2012 21:30:34 +0000, Evertjan. wrote:

> Denis McMahon wrote on 26 aug 2012 in comp.lang.javascript:
> 
>> The html is broken in several ways:
>> 
>> 1) You use <br/>, this is normally written <br /> (note space before
>> "/") (see also 13)

> Nonsense!
> 
> HTML is <br>
>
> <br/> or <br /> is NOT html.

Yes, I know.

I'm not sure if the OP is serving this as xhtml or html, if he's serving 
xhtml it should be <br />.

If you read my comments through I pointed out further down that it seems 
to be html, and that if so, he doesn't need to close the br xml style, or 
the inputs or need </option> (although imo closing option, like li and p, 
is good practice).

Likewise, he doesn't have to declare values for readonly, selected or 
nowrap attributes, but again imo it's a good idea to do so.

If the OP's page is xhtml (suggested by <br/>) then it's broken by the 
unclosed option and input elements amongst others.

If the OP's page is html (suggested by the unclosed option and input 
elements, the lack of value assignments to selected and readonly 
attributes, and the use of the nowrap td attribute), then the <br/> is 
wrong.

Ultimately the markup the OP has offered us is not compliant with any 
defined schema that I'm aware of.

Rgds

Denis McMahon

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Sum of several fields using parseInt differs from that of using a calculator justaguy <lichunshen84@gmail.com> - 2012-08-25 06:18 -0700
  Re: Sum of several fields using parseInt differs from that of using a calculator Martin Honnen <mahotrash@yahoo.de> - 2012-08-25 15:39 +0200
    Re: Sum of several fields using parseInt differs from that of using a calculator justaguy <lichunshen84@gmail.com> - 2012-08-25 09:27 -0700
      Re: Sum of several fields using parseInt differs from that of using a calculator Denis McMahon <denismfmcmahon@gmail.com> - 2012-08-25 18:53 +0000
      Re: Sum of several fields using parseInt differs from that of using a calculator SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-08-26 11:13 +0200
    Re: Sum of several fields using parseInt differs from that of using a calculator Dr J R Stockton <reply1234@merlyn.demon.co.uk.invalid> - 2012-08-26 18:54 +0100
  Re: Sum of several fields using parseInt differs from that of using a calculator SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-08-25 20:39 +0200
    Re: Sum of several fields using parseInt differs from that of using a calculator justaguy <lichunshen84@gmail.com> - 2012-08-25 14:07 -0700
      Re: Sum of several fields using parseInt differs from that of using a calculator Martin Honnen <mahotrash@yahoo.de> - 2012-08-26 11:23 +0200
      Re: Sum of several fields using parseInt differs from that of using a calculator SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-08-26 11:27 +0200
        Re: Sum of several fields using parseInt differs from that of using a calculator justaguy <lichunshen84@gmail.com> - 2012-08-26 06:26 -0700
          Re: Sum of several fields using parseInt differs from that of using a calculator justaguy <lichunshen84@gmail.com> - 2012-08-26 08:48 -0700
          Re: Sum of several fields using parseInt differs from that of using a calculator SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-08-26 20:55 +0200
          Re: Sum of several fields using parseInt differs from that of using a calculator Denis McMahon <denismfmcmahon@gmail.com> - 2012-08-26 20:50 +0000
            Re: Sum of several fields using parseInt differs from that of using a calculator "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-08-26 21:30 +0000
              Re: Sum of several fields using parseInt differs from that of using a calculator Denis McMahon <denismfmcmahon@gmail.com> - 2012-08-26 22:29 +0000
            Re: Sum of several fields using parseInt differs from that of using a calculator SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-08-26 23:32 +0200
              Re: Sum of several fields using parseInt differs from that of using a calculator Denis McMahon <denismfmcmahon@gmail.com> - 2012-08-26 22:39 +0000
                Re: Sum of several fields using parseInt differs from that of using a calculator SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-08-27 04:23 +0200
            Re: Sum of several fields using parseInt differs from that of using a calculator Martin Leese <please@see.Web.for.e-mail.INVALID> - 2012-08-27 11:09 -0600
              Re: Sum of several fields using parseInt differs from that of using a calculator Stefan Weiss <krewecherl@gmail.com> - 2012-08-28 02:14 +0200
                Re: Sum of several fields using parseInt differs from that of using a calculator Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-08-28 14:53 +0200
                Re: Sum of several fields using parseInt differs from that of using a calculator Martin Leese <please@see.Web.for.e-mail.INVALID> - 2012-08-28 11:29 -0600
  Re: Sum of several fields using parseInt differs from that of using a calculator "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2012-08-25 12:44 -0700

csiph-web