Re: [apps-discuss] Media Type for HTML 'snippets'?

Henri Sivonen <hsivonen@iki.fi> Thu, 25 October 2012 10:34 UTC

Return-Path: <hsivonen@gmail.com>
X-Original-To: apps-discuss@ietfa.amsl.com
Delivered-To: apps-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CC90A21F8853 for <apps-discuss@ietfa.amsl.com>; Thu, 25 Oct 2012 03:34:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.675
X-Spam-Level:
X-Spam-Status: No, score=-1.675 tagged_above=-999 required=5 tests=[AWL=-1.152, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, FRT_ADOBE2=2.455, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bb3MK31pjn95 for <apps-discuss@ietfa.amsl.com>; Thu, 25 Oct 2012 03:34:23 -0700 (PDT)
Received: from mail-la0-f44.google.com (mail-la0-f44.google.com [209.85.215.44]) by ietfa.amsl.com (Postfix) with ESMTP id 96C0921F88E0 for <apps-discuss@ietf.org>; Thu, 25 Oct 2012 03:34:22 -0700 (PDT)
Received: by mail-la0-f44.google.com with SMTP id b11so1425090lam.31 for <apps-discuss@ietf.org>; Thu, 25 Oct 2012 03:34:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=6oKFzAqLw3nS3yrhJR7+3d2ypU0I2Y2lAIN2fkRu5l4=; b=RLv4gNZy6+od5OrLnxbc/zNL9vu9WpYDl9BDYOangM+0IULW0ktwSYnJe5/ORHN8AC znPcTQP7GVebtWN+MOeDGK2sW0Ed3bmPL8KWpUNjHrB9OvWzMnBT+hqwACUNJ6xlzqoa 2tseWVEXIgA5l5d7b5HzgSmrXtAGuuPuA/hYSGOx4HsHLH6EV2QA0wL6lxdfAToFBkvg djHEAMLHh8VcNLRA06yV2IkbDK0ldPx6dhJPFIywa+/valI/wN6ZP4U7Y44fFTigo+RN ymGb1tnrvDrQUfRtAyhTYHZKWlIXhCZ+jO/J3PR3A5V0ty2IGZN7iznp0kctH6WvPXuX izVw==
MIME-Version: 1.0
Received: by 10.152.104.115 with SMTP id gd19mr17311270lab.13.1351161261403; Thu, 25 Oct 2012 03:34:21 -0700 (PDT)
Sender: hsivonen@gmail.com
Received: by 10.112.99.9 with HTTP; Thu, 25 Oct 2012 03:34:21 -0700 (PDT)
In-Reply-To: <C68CB012D9182D408CED7B884F441D4D1E36C369D0@nambxv01a.corp.adobe.com>
References: <8573713A-4AEC-4C63-8379-F2FDE9274BB6@mac.com> <C68CB012D9182D408CED7B884F441D4D1E36C369D0@nambxv01a.corp.adobe.com>
Date: Thu, 25 Oct 2012 13:34:21 +0300
X-Google-Sender-Auth: 4qNliuopGqy3ue5zkYXv8IGm3vk
Message-ID: <CAJQvAueE6er5NQNdN3fzC1vjCHvyb17eGuHoEzfZiNuXB+jZrg@mail.gmail.com>
From: Henri Sivonen <hsivonen@iki.fi>
To: Larry Masinter <masinter@adobe.com>
Content-Type: text/plain; charset="UTF-8"
Cc: "apps-discuss@ietf.org application-layer protocols" <apps-discuss@ietf.org>, Jan Algermissen <algermissen1971@mac.com>
Subject: Re: [apps-discuss] Media Type for HTML 'snippets'?
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: General discussion of application-layer protocols <apps-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/apps-discuss>
List-Post: <mailto:apps-discuss@ietf.org>
List-Help: <mailto:apps-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Oct 2012 10:34:23 -0000

On Wed, Oct 10, 2012 at 2:03 PM, Jan Algermissen
<algermissen1971@mac.com> wrote:
> I am looking for an appropriate media type to use when serving HTML snippets that have a <div> as their root element.

On Thu, Oct 25, 2012 at 5:42 AM, Larry Masinter <masinter@adobe.com> wrote:
> The new registration for text/html  http://www.iana.org/assignments/media-types/text/html
> points to the HTML5 spec;  snippets wrapped  <div>   </div> would be processed fine, so "text/html" would be appropriate.

Parsing such as snippet as text/html results in a document with "html"
as its root element. (Parsing text/html *always* results in the root
being "html" regardless of the contents of the file.)

-- 
Henri Sivonen
hsivonen@iki.fi
http://hsivonen.iki.fi/