eGospodarka.pl
eGospodarka.pl poleca

eGospodarka.plGrupypl.comp.wwwSubmit formularza w IE8 › Re: Submit formularza w IE8
  • Path: news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
    From: porneL <n...@p...net>
    Newsgroups: pl.comp.www
    Subject: Re: Submit formularza w IE8
    Date: Sat, 06 Jun 2009 13:55:17 +0100
    Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
    Lines: 47
    Message-ID: <o...@a...local>
    References: <h0678k$gpl$1@achot.icm.edu.pl> <o...@a...local>
    <h07sq1$52p$1@news.dialog.net.pl> <h0854g$6se$1@achot.icm.edu.pl>
    <h086uc$cjf$1@news.dialog.net.pl> <h09cn3$jn7$1@mx1.internetia.pl>
    <h0akql$ioj$1@achot.icm.edu.pl> <h0amgo$vk3$1@mx1.internetia.pl>
    <h0cchk$663$1@achot.icm.edu.pl>
    NNTP-Posting-Host: cpc1-acto1-2-0-cust35.4-2.cable.virginmedia.com
    Mime-Version: 1.0
    Content-Type: text/plain; charset=iso-8859-2; format=flowed; delsp=yes
    Content-Transfer-Encoding: 7bit
    X-Trace: inews.gazeta.pl 1244292919 6016 82.28.217.36 (6 Jun 2009 12:55:19 GMT)
    X-Complaints-To: u...@a...pl
    NNTP-Posting-Date: Sat, 6 Jun 2009 12:55:19 +0000 (UTC)
    X-User: pornelspam
    User-Agent: Opera Mail/10.00 (MacIntel)
    Xref: news-archive.icm.edu.pl pl.comp.www:392214
    [ ukryj nagłówki ]

    On Sat, 06 Jun 2009 01:16:53 +0100, Marek <m...@s...interia.pl>
    wrote:

    > obj.action="?xxx=zzz";
    >
    > To odczyt tego pola będzie zaskakująco inny:
    >
    > http://domena/katalog/nazwapliku.php?xxx=yyy
    >
    > IE8 dopisał sobie sam nazwę pliku do URL. Podsumowując: gdy pole action
    > jest puste
    > to dwie poniższe operacje w JS dla IE8 nie są sobie równoważne:
    >
    > save=obj.action;
    > obj.action=save+"?xxx=zzz";
    >
    > oraz
    >
    > obj.action="?xxx=zzz";
    >
    > gdyż save nie zawiera pustego stringu mimo iż action jest pusty. Super
    > pop... co?

    No super, że *poprawili buga* i twój kod sypie się na *prawidłowym* DOM.

    <form action=""> vs form.action powinno zachowywać się analogicznie do <a
    href=""> vs a.href i wygląda na to, że IE8 to wreszcie robi poprawnie.

    Jeśli chcesz niezmienioną wartość atrybutu, to używaj getAttribute().


    http://www.whatwg.org/specs/web-apps/current-work/mu
    ltipage/forms.html#dom-fs-action

    > The action, method, enctype, and target DOM attributes must reflect the
    > respective content attributes of the same name.

    http://www.whatwg.org/specs/web-apps/current-work/mu
    ltipage/infrastructure.html#reflecting-content-attri
    butes-in-dom-attributes

    > If a reflecting DOM attribute is a DOMString attribute whose content
    > attribute is defined to contain a URL, then on getting, the DOM
    > attribute must resolve the value of the content attribute relative to
    > the element and return the resulting absolute URL


    --
    http://pornel.net
    this.author = new Geek("porneL");

Podziel się

Poleć ten post znajomemu poleć

Wydrukuj ten post drukuj


Następne wpisy z tego wątku

Najnowsze wątki z tej grupy


Najnowsze wątki

Szukaj w grupach

Eksperci egospodarka.pl

1 1 1

Wpisz nazwę miasta, dla którego chcesz znaleźć jednostkę ZUS.

Wzory dokumentów

Bezpłatne wzory dokumentów i formularzy.
Wyszukaj i pobierz za darmo: